import axios from "axios"

// 请求通用方法
const req = ({ method, url, params }) => {
    // console.log(method,url,params);
    return axios({
        method,
        url,
        data: params
    }).then(res => res.data).catch(err => { console.log(err); })
}

export {
    req
}